<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Sistema Web - Faça seu login!!!</title>
    </h:head>
    <br/>
    <center><h:graphicImage value="/img/logo.png" id="logo" height="170"/></center>
    <br/>
    <br/>
    <br/>
    <h:body>
        <center>
        <h:form id="formLogin">
            <h:panelGrid columns="2">
                <h:outputLabel value="Email: "/><h:inputText id="usuario" value="#{usuarioBean.usuario.email}" required="true" size="30"/>
                <h:outputLabel value="Senha: "/><h:inputSecret id="senha" value="#{usuarioBean.usuario.senha}" required="true" size="30"/>
                <h:inputHidden/><h:commandButton value="Logar no sistema" action="#{usuarioBean.loginUsuario}"/>
            </h:panelGrid>
        </h:form>
            <h:form>
                Se você ainda não tem um cadastro, faça aqui! <h:commandLink id="criar-usuario" value="Novo Usuário" action="novoUsuario"/>
            </h:form>
        </center>
        
    </h:body>
</html>

